namespace Brjnk.GpxExplorer
{
    using System.Windows.Media;

    /// <summary>
    /// </summary>
    public static class AutoColorSelector
    {
        private static int i = 0;

        private static Color[] colors = {
                                            Colors.Crimson,
                                            Colors.RoyalBlue,
                                            Colors.YellowGreen,
                                            Colors.Violet,
                                            Colors.Gray,
                                            Colors.Aqua,
                                            Colors.RosyBrown,
                                            Colors.OliveDrab,
                                            Colors.Tomato,
                                            Colors.SlateGray
                                        };

        public static Color GetNextColor()
        {
            i++;
            if (i >= colors.Length) i = 0;
            return colors[i];
        }
    }
}